using Project.Configs.Abstractions;
using UnityEngine;

namespace Project.Configs
{
    [CreateAssetMenu(menuName = ConfigsMenuName + nameof(ItemConfig))]
    public class ItemConfig : ScriptableConfigBase
    {
        [field: SerializeField, Min(0)] public int Id { get; private set; } = 0;
        [field: Space]
        [field: SerializeField] public Sprite Sprite { get; private set; }
        [field: SerializeField] public string Name { get; private set; } = nameof(Name);
        [field: SerializeField, TextArea] public string Description { get; private set; } = nameof(Description);
        [field: Space]
        [field: SerializeField, Min(0)] public int MaxQuantity { get; private set; } = 9999;
    }
}
